java assignment1